cmake_minimum_required(VERSION 3.8)
project(e_wheel)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()
include_directories(
  include
  ${Boost_INCLUDE_DIRS}
)

aux_source_directory(src SRC_LISTS)
# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
# find dependencies
# uncomment the following section in order to fill in
# further dependencies manually.
# find_package(<dependency> REQUIRED)
add_executable(e_wheel ${SRC_LISTS})
#add_executable(e_wheel src/eight_wheel_ctr.cpp src/main_while.cpp)
ament_target_dependencies(e_wheel rclcpp std_msgs)
install(TARGETS
e_wheel
  DESTINATION lib/${PROJECT_NAME})
  install(DIRECTORY launch
  DESTINATION share/${PROJECT_NAME}
)
ament_package()

